From 925bd0e8f78e97f3f8eb6f5925aad765bf14d077 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 2 Oct 2007 09:29:23 +0100 Subject: [PATCH] Fix ioemu compile on Solaris Solaris doesn't have RLIMIT_RSS at least; don't try to set rlimits. Signed-off-by: John Levon --- tools/ioemu/vl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/ioemu/vl.c b/tools/ioemu/vl.c index 369769090a..f334020768 100644 --- a/tools/ioemu/vl.c +++ b/tools/ioemu/vl.c @@ -7102,6 +7102,7 @@ int main(int argc, char **argv) char qemu_dm_logfilename[128]; const char *direct_pci = NULL; +#ifndef __sun__ /* Maximise rlimits. Needed where default constraints are tight (*BSD). */ if (getrlimit(RLIMIT_STACK, &rl) != 0) { perror("getrlimit(RLIMIT_STACK)"); @@ -7125,6 +7126,7 @@ int main(int argc, char **argv) rl.rlim_max = RLIM_INFINITY; if (setrlimit(RLIMIT_MEMLOCK, &rl) != 0) perror("setrlimit(RLIMIT_MEMLOCK)"); +#endif /* Ensure that SIGUSR2 is blocked by default when a new thread is created, then only the threads that use the signal unblock it -- this fixes a -- 2.30.2